#pragma once
#include "super/SpriteRbody.h"
#include "../box2dManage/Cbox2dManage.h"

#define COCONUT_STATE_NORMAL     (0)
#define COCONUT_STATE_DESTROY	 (1)
class CSpriteCoconut:
	public CSpriteRbody
{
public:
	CSpriteCoconut(void);
	~CSpriteCoconut(void);
	static CSpriteCoconut* spriteWithFile(const char *pszFileName);
	static CSpriteCoconut* spriteWithRBodyFile(float density,const CCPoint& pos,const char *pszFileName);
	void updatelogic();
	void updateHitLogic();
	void sethitType(int type);
	void changeState(int state);
	int getState();
private:
	int m_state;
};
